package com.quickpass.order.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * 订单(BOrder)实体类
 *
 * @author makejava
 * @since 2023-02-07 16:50:18
 */

public class Order implements Serializable {
    private static final long serialVersionUID = -26690761539509733L;
    /**
     * id
     */
    private Long id;
    /**
     * 商家ID
     */
    private Long businessid;

    /**
     * 桌号ID
     */
    private Integer tableid;
    /**
     * 用户ID
     */
    private Long memberid;
    /**
     * 使用的优惠券
     */
    private Long couponid;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 订单总额
     */
    private Double totalamount;
    /**
     * 优惠券抵扣金额
     */
    private Double couponamount;
    /**
     * 应付总额
     */
    private Double payamount;



    /**
     * 支付方式
     */
    private Integer paytype;
    /**
     * 支付状态
     */
    private Integer paystatus;

    public Order(Long id, Long businessid, Integer tableid, Long memberid, Long couponid, Date createtime, Double totalamount, Double couponamount, Double payamount, Integer paytype, Integer paystatus) {
        this.id = id;
        this.businessid = businessid;
        this.tableid = tableid;
        this.memberid = memberid;
        this.couponid = couponid;
        this.createtime = createtime;
        this.totalamount = totalamount;
        this.couponamount = couponamount;
        this.payamount = payamount;
        this.paytype = paytype;
        this.paystatus = paystatus;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBusinessid() {
        return businessid;
    }

    public void setBusinessid(Long businessid) {
        this.businessid = businessid;
    }

    public Integer getTableid() {
        return tableid;
    }

    public void setTableid(Integer tableid) {
        this.tableid = tableid;
    }

    public Long getMemberid() {
        return memberid;
    }

    public void setMemberid(Long memberid) {
        this.memberid = memberid;
    }

    public Long getCouponid() {
        return couponid;
    }

    public void setCouponid(Long couponid) {
        this.couponid = couponid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Double getTotalamount() {
        return totalamount;
    }

    public void setTotalamount(Double totalamount) {
        this.totalamount = totalamount;
    }

    public Double getCouponamount() {
        return couponamount;
    }

    public void setCouponamount(Double couponamount) {
        this.couponamount = couponamount;
    }

    public Double getPayamount() {
        return payamount;
    }

    public void setPayamount(Double payamount) {
        this.payamount = payamount;
    }

    public Integer getPaytype() {
        return paytype;
    }

    public void setPaytype(Integer paytype) {
        this.paytype = paytype;
    }

    public Integer getPaystatus() {
        return paystatus;
    }

    public void setPaystatus(Integer paystatus) {
        this.paystatus = paystatus;
    }

    public Order() {
    }
}

